
<!--顶部退出-->
<div style='position:absolute;top:0px;width:100%'>
	<div class='nav_div' style='font-size:12px;text-align:right;'>
		<span style='margin-right:20px'>当前用户：<a href="after_con_admin_set.html" style='text-decoration:none' id='after_user'></a></span>
		<span style='margin-right:20px' id='after_exit'>退出</span>
	</div>
</div>
<script>
	if(sessionStorage.user){
		$('#after_user').text(sessionStorage.user);
	}else{
		location.replace('after_login.html');
	}

	$('#after_exit').click(function(){
		if(confirm('确认退出？')){
			sessionStorage.user = '';
			location.reload();
		}
	});

</script>



<!--底部导航与显示页面-->
<div style='height:50px'></div>
<div style='position:fixed;bottom:0px;width:100%'>
	<div class='nav_div' style='margin:0 auto'>
		<select style='width:100%' id="bottom_nav">
			<option value="index">首页</option>
			<option value="1">公共数据库设置</option>
			<option value="2">服务器管理</option>
			<option value="3">城市开通管理</option>
			<option value="4">管理成员</option>
			<option value="5">小区管理</option>
			<option value="6">通知管理</option>
		</select>
	</div>
</div>
<script>
	$('#bottom_nav').change(function(){
		var val = $(this).find('option:selected').val();
		sessionStorage.bottom_nav = val;
		switch(val){
			case'index':location.replace('after_con_index.html');break;
			case 1:case'1':location.replace('after_con_public.html');break;
			case 2:case'2':location.replace('after_con_server.html');break;
			case 2:case'3':location.replace('after_con_opencity.html');break;
			case 4:case'4':location.replace('after_con_admin.html');break;
			case 3:case'5':location.replace('after_con_area.html');break;
			case 4:case'6':location.replace('after_con_msg.html');break;
		}
	});
	if(sessionStorage.bottom_nav){
		$('#bottom_nav').val(sessionStorage.bottom_nav);
	}
</script>


